package com.example.logservice.LogPojo;


import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Log {
    private String logId;
    private String logTarget;
    private String logLevel;
    private String logDetail;
    private Date logTime;

    public Log() {}

    public Log(String logTarget, String logLevel, String logDetail) {
        this.logTarget = logTarget;
        this.logLevel = logLevel;
        this.logDetail = logDetail;
    }

    public Log(String logId, String logTarget, String logLevel, String logDetail, Date logTime) {
        this.logId = logId;
        this.logTarget = logTarget;
        this.logLevel = logLevel;
        this.logDetail = logDetail;
        this.logTime = logTime;
    }

    public String getLogId() {
        return logId;
    }

    public void setLogId(String logId) {
        this.logId = logId;
    }

    public String getLogTarget() {
        return logTarget;
    }

    public void setLogTarget(String logTarget) {
        this.logTarget = logTarget;
    }

    public String getLogLevel() {
        return logLevel;
    }

    public void setLogLevel(String logLevel) {
        this.logLevel = logLevel;
    }

    public String getLogDetail() {
        return logDetail;
    }

    public void setLogDetail(String logDetail) {
        this.logDetail = logDetail;
    }

    public Date getLogTime(){
        return logTime;
    }

    public void setLogTime(Date logTime){
        this.logTime = logTime;
    }

    @Override
    public String toString() {
        return "Log{" +
                "logId='" + logId + '\'' +
                ", logTarget='" + logTarget + '\'' +
                ", logLevel='" + logLevel + '\'' +
                ", logDetail='" + logDetail + '\'' +
                ", logTime=" + logTime +
                '}';
    }
}
